/**
 * 
 */
package com.yidu.drug.service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.yidu.drug.model.FdPurchaseModel;

/**
 * @author yuanwei
 *
 */
public interface FdPurchaseService {
	/**
	 * 查询所有
	 * @param page
	 * @param limit
	 * @return
	 */
	public List<FdPurchaseModel> findAll(FdPurchaseModel fdPurchaseModel,int page,int limit);
	
	/**
	 * 分页查询
	 * @param fdPurchaseModel
	 * @return
	 */
	Integer findRows(FdPurchaseModel fdPurchaseModel);
	
	/**
	 * 删除
	 * @param 
	 * @return
	 */
	public int delete(String fdPoId);
	
	/**
	 * 根据id查询数据
	 * @param fdPoId
	 * @return
	 */
	public FdPurchaseModel findById(String fdPoId);
	
	/**
	 * 根据id修改数据
	 * @param fdPoId
	 * @return
	 */
	public int update(FdPurchaseModel fdPurchaseModel);
	
	/**
	 * 新增订单
	 * @param fdPurchaseModel
	 * @return
	 */
	public int save(FdPurchaseModel fdPurchaseModel);
	
	/**
	 *  根据id修改价格和数量
	 * @param fdSunnum
	 * @param fdSumprice
	 * @param fdPoId
	 * @return
	 */
	public int updates(Long fdSunnum,BigDecimal fdSumprice,String fdPoId);

	public List<FdPurchaseModel> findAllPage(Map<String, String> map);
	
}
